/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Engine2D.math;

import java.io.Serializable;

/**
 *
 * @author Garys
 */
public class Vector2i implements Serializable {
    /**
     * 
     */
    protected int x;
    /**
     * 
     */
    protected int y;
    
    /**
     * 
     * @param x
     * @param y
     */
    public Vector2i(int x, int y) {
        this.x = x;
        this.y = y;
    }

    /**
     * 
     * @return
     */
    public int getX() {
        return x;
    }

    /**
     * 
     * @param x
     */
    public void setX(int x) {
        this.x = x;
    }

    /**
     * 
     * @return
     */
    public int getY() {
        return y;
    }

    /**
     * 
     * @param y
     */
    public void setY(int y) {
        this.y = y;
    }

    /**
     * 
     * @return
     */
    public Vector2f toFloat() {
        return new Vector2f((float)x, (float)y);
    }
}
